Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Sven Kinilynivu 23.Dec.03 02:39 PM a Web browser
Domino Server All Releases Windows 2000


I am new to domino so forgive me if this is a 'newbie' style question. I am looking for a way to access a file that has been run through the server and the only way that I have found to do this is similar to the code at the bottom. Is there a better way to get to the output without having to go through the localhost? Or is this just the standard way this type of thing is done and I should just live with it? It just seems kind of clunky to me.

Regards,

-Jason


public void NotesMain() {

try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();

URL url = new URL("http://127.0.0.1/http_post_test.nsf/test_form?CreateDocument");

URLConnection connection = url.openConnection();
connection.setUseCaches(false);
connection.setDoOutput (true);

BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
while(null != (line = in.readLine())) {
System.out.println(line);
}

in.close();

} catch(Exception e) {
e.printStackTrace();
}
}






clunky java agent code? (~Sven Kinilyniv... 23.Dec.03)
. . RE: clunky java agent code? (~Patti Dwoavitc... 23.Dec.03)
. . RE: clunky java agent code? (~Kirk Elreterod... 23.Dec.03)
. . . . RE: clunky java agent code? (~Sven Kinilyniv... 23.Dec.03)
. . . . . . RE: clunky java agent code? (~Kirk Elreterod... 24.Dec.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS